#Makefile for libraries
#This makefile is used by makefile which compiles whole project

CXX = gcc
CXXFLAGS = -c -o
OBJS = f_add1.o f_add2.o f_jmp.o
LINK_TARGET = f_add1.o f_add2.o f_jmp.o
TYPES_DIR = ../libs/types.h
REBUILDABLES = ${OBJS} ${LINK_TARGET}

all: ${LINK_TARGET}
	echo Functions compilation done
	
f_add1.o: f_add1.c 
	${CXX} $^ ${CXXFLAGS} $@
	
f_add2.o: f_add2.c 
	${CXX} $^ ${CXXFLAGS}  $@
	
f_jmp.o: f_jmp.c
	${CXX} $^  ${CXXFLAGS}  $@
			
clean:
	rm -f *.o
	echo Clean done
	
#Komentarz:
#zasada działania makefile:
#odsyłam do linku: http://www.cprogramming.com/tutorial/makefiles.html
#tam dalej jest link do advanced use of makefiles. wystarczy przeczytać by zrozumieć

